<?php
class MpaccountAction extends CommonAction {

	public function index()
	{	
		$Mpaccount = M('Mpaccount');
		$map['mid'] = $this->mid;
		$vo = $Mpaccount->where($map)->find();
		if (!$vo) {
			$data['mid'] = $this->mid;
			$Mpaccount->add($data);
			$vo = $Mpaccount->where($map)->find();
		}
		$this->assign('vo',$vo);
		$this->display();
	}

}